package com.xasqkj.seethedoctorwithphone.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

/**
 * Created by YixuanNan on 16/4/7.
 */
public class Myadapter extends BaseAdapter {
    Context context;
    int Rid;
    public Myadapter(Context context,int Rid){
        this.context=context;
        this.Rid=Rid;
    }
    @Override
    public int getCount() {
        return 10;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        @SuppressLint("ViewHolder") View view=View.inflate(context,Rid,null);
        return view;
    }
}
